/* 控制面板 */
#control-panel {
    flex: 1;
    padding: 20px;
    background-color: white;
    display: flex;
    flex-direction: column;
    max-width: 400px;
    overflow-y: auto;
}

/* 游戏信息 */
#game-info {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

#time-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

#time-controls {
    display: flex;
    gap: 10px;
}

#boss-countdown.warning {
    color: var(--danger-color);
    font-weight: bold;
}

/* 资源概览 */
#resources-overview {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.resource-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

/* 事件日志 */
#event-log {
    flex-grow: 1;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    min-height: 200px;
    max-height: 300px;
    overflow-y: auto;
}

#log-entries {
    font-size: 14px;
}

.log-entry {
    padding: 8px;
    margin-bottom: 5px;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.log-entry.important {
    background-color: #ffe8e8;
    border-left: 3px solid var(--danger-color);
}

.log-entry.positive {
    background-color: #e8ffe8;
    border-left: 3px solid var(--success-color);
}

/* 操作按钮 */
#action-buttons {
    display: flex;
    justify-content: space-between;
}

/* 王国详情 */
.kingdom-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* 强者榜 */
#strongest-list, #history-list {
    max-height: 400px;
    overflow-y: auto;
}

.hero-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid var(--border-color);
}

.hero-rank {
    font-size: 18px;
    font-weight: bold;
    width: 30px;
}

.hero-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--secondary-color);
    margin: 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
}

.hero-info {
    flex-grow: 1;
}

.hero-name {
    font-weight: bold;
}

.hero-ability {
    font-size: 16px;
    font-weight: bold;
    color: var(--primary-color);
}

.hero-status {
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.status-alive {
    background-color: var(--success-color);
    color: white;
}

.status-dead {
    background-color: #888;
    color: white;
}

/* 魔王挑战 */
.boss-avatar {
    text-align: center;
    margin-bottom: 15px;
}

.boss-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--danger-color);
    object-fit: cover;
}

.boss-info {
    margin-bottom: 20px;
}

.battle-comparison {
    margin: 20px 0;
}

#start-challenge {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    background-color: var(--danger-color);
}

#start-challenge:hover {
    background-color: #a52a2a;
}